// 医生管理

import { httpDelete, httpGet, httpPost, httpPut } from "../utils/http"

// 查询医生
export const searchDoctorsApi = (data) => {
  return httpPost('/doctors/search', data)
}
// 新增医生
export const addDoctorsApi = (data) => {
  return httpPost('/doctors/add', data)
}
// 修改医生 
export const updateDoctorsApi = (data) => {
  return httpPut('/doctors/update', data)
}
// 删除医生 
export const removeDoctorsApi = (data) => {
  return httpDelete('/doctors/remove', data)
}
// 获取一个医生详情 
export const detailDoctorsApi = (data) => {
  return httpGet('/doctors/detail', data)
}